﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace MyAMS.WebServer.Models
{
    /// <summary>
    /// 消息模型
    /// </summary>
    [DataContract]
    public class Message : BaseEntity
    {
        /// <summary>
        /// 获取或设置接受者列表
        /// </summary>
        //[DataMember]
        //public IList<User> To { get; set; }
        //TODO (5he11)

        /// <summary>
        /// 获取或设置主题
        /// </summary>
        [DataMember]
        public string Subject { get; set; }

        /// <summary>
        /// 获取或设置正文
        /// </summary>
        [DataMember]
        public string Body { get; set; }

        /// <summary>
        /// 获取或设置发送时间
        /// </summary>
        [DataMember]
        public DateTime? Sent { get; set; }

        /// <summary>
        /// 获取或设置一个值，该值指示当前实例是否为已读状态
        /// </summary>
        [DataMember]
        public bool IsRead { get; set; }
    }
}
